﻿using Net8.Project.Model.Dto;
using Net8.Project.Model.Entity;
namespace Net8.Project.IService
{
    public interface IUserService: IBaseService<User>
    {
        /// <summary>
        /// 根据用户ID获取用户信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<UserDto> GetById(int id);

        /// <summary>
        /// 测试事务传播
        /// </summary>
        /// <returns></returns>
        Task<bool> TestTranPropagation();

        /// <summary>
        /// 获取系统中所有的角色和菜单的关系集合
        /// </summary>
        /// <returns></returns>
        Task<List<RoleModulePermission>> RoleModuleMaps();

        /// <summary>
        /// 获取用户角色名称
        /// </summary>
        /// <param name="loginName"></param>
        /// <param name="loginPwd"></param>
        /// <returns></returns>
        Task<string> GetUserRoleNameStr(string loginName, string loginPwd);
    }
}
